home *** CD-ROM | disk | FTP | other *** search
Text File | 1993-03-10 | 1.1 KB | 22 lines | [TEXT/MPS ] |
- -
- Grep # print lines matching a regular expression
- Grep [-CVbchilnsvwx] [-num] [-AB num] [[-e] expr|-f file] [files…]
- -A num # print <num> lines of context after every matching line
- -B num # print num lines of context before every matching line
- -C # print 2 lines of context on each side of every match
- -num # print num lines of context on each side of every match
- -V # print the version number on the diagnostic output
- -b # print every match preceded by its byte offset
- -c # print a total count of matching lines only
- -e expr # search for expr; useful if expr begins with -
- -f file # search for the expression contained in file
- -h # don't display filenames on matches
- -i # ignore case difference when comparing strings
- -l # list files containing matches only
- -n # print each match preceded by its line number
- -s # run silently producing no output except error messages
- -v # print only lines that contain no matches for the <expr>
- -w # print only lines where the match is a complete word
- -x # print only lines where the match is a whole line
-
-